{% extends 'base.html' %}
{% block content %}
    <form class="form-horizontal" role="form" method="post" action="/chgGroup/" >
        <fieldset >
            <legend>修改属组信息</legend>
            {% if error %}
                <div class="alert alert-danger">
                    {{ error }}
                </div>
            {% endif %}

            {% if msg %}
                <div class="alert alert-success">
                    {{ msg }}
                </div>
            {% endif %}
            <div class="form-group">
                <div class="col-sm-4">
                    <input type="text" id="id" name="id" value="{{ group.id }}" hidden="hidden">
                </div>
            </div>
            <div class="form-group">
                <label for="oldname" class="col-sm-2 control-label">原来属组<span style="color: red"> *</span></label>
                <div class="col-sm-4">
                    <input type="text" id="oldname" name="oldname" class="form-control" value="{{ group.name }}" readOnly="readOnly">
                </div>
            </div>
            <div class="form-group">
                <label for="name" class="col-sm-2 control-label">属组<span style="color: red"> *</span></label>
                <div class="col-sm-4">
                    <input type="text" id="name" name="name" class="form-control"  placeholder="属组">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-4">
                    <button class="btn btn-primary">修改</button>
                </div>
            </div>
        </fieldset>
    </form>
{% endblock %}